var setSize = function(){
	var availheight = pi.util.GetViewport().height-pi.get("header").offsetHeight;
	pi.get("indexContainer").style.height = availheight-4+"px";
	pi.get("documentationContent").style.height = availheight-4+"px"
};

var trace = function(){
	pi.get("container").innerHTML=Array.prototype.join.call(Array.prototype.slice.call(arguments,1),"<br />");
};


pi.util.Init.push(function(){
	dp.SyntaxHighlighter.ClipboardSwf = '../${root}/inc/sh/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
});

pi.util.Init.push(setSize);
pi.util.AddEvent(window,"resize",setSize);
